<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
	<meta name="description" content="description"/>
	<meta name="keywords" content="keywords"/>
% if author
  <meta name="author" content="<%= author %>"/>
% end
	<link rel="stylesheet" type="text/css" href="stylesheets/article.css" media="screen"/>
% for sheet in stylesheets
  <link rel="stylesheet" type="text/css" href="stylesheets/<%= sheet %>" media="screen"/>
% end
% unless inline_styles.empty?
  <style type="text/css">
% for style in inline_styles
<%= style.fixed_indent( 4 ) %>
% end
	</style>
% end
% for script in scripts
  <script type="text/javascript" src="scripts/<%= script %>"></script>
% end

	<title>ANTLR For Ruby: <%= title %></title>
</head>

<body>
<div class="left">
	<div class="header">
		<h2><span>ANTLR for Ruby</span></h2>
		<h1><%= title == 'Home' ? 'Guide to ANTLR for Ruby' : title %></h1>
	</div>
	<div class="annotation">
% if author
% if email
		<div class="author">by <a href="mailto:<%= email %>"><%= author %></a></div>
% else
    <div class="author">by <%= author %></div>
% end
% end
    <div class="timestamp">updated <%= time.strftime( "%A, %B %d, %Y at %I:%M%p %Z" ) %></div>
	</div>
	<div class="content">
<%= body %>
	</div>
</div>

<div class="nav">
	<div class="logo"><span></span></div>

	<ul>
% for id, section in outline
		<li><a href="#<%= id %>"><%= section %></a></li>
% end
	</ul>
</div>

<div class="right">
	<div class="round">		
		<div class="roundtl"><span></span></div>
		<div class="roundtr"><span></span></div>
		<div class="clearer"><span></span></div>
	</div>

	<div class="subnav">
		<h1>Contents</h1>
		<ul>
% for article in guide.articles
% if article == self
  		<li class="current"><%= article.title %></li>
% else
      <li<% if article.empty? %> class="todo"<% end %>><%= link_article( article ) %></li>
% end
% end
		</ul>
		
    <h1>Project Links</h1>
		<ul>
% for title, url in guide.project_links
      <li><a href="<%= url %>"><%= title %></a></li>
% end
		</ul>
		
    <h1>External Links</h1>
		<ul>
% for title, url in guide.external_links
      <li><a href="<%= url %>"><%= title %></a></li>
% end
		</ul>
	</div>

	<div class="round">
		<div class="roundbl"><span></span></div>
		<div class="roundbr"><span></span></div>
		<span class="clearer"></span>
	</div>
</div>

<div class="footer">
	
% if author and email
  &copy; 2010 <a href="mailto:<%= email %>"><%= author %></a>. Valid <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> &amp; <a href="http://validator.w3.org/check?uri=referer">XHTML</a>. <a href="http://templates.arcsin.se">Website template</a> by <a href="http://arcsin.se">Arcsin</a>
% else
  &copy; 2010 <%= author %>. Valid <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a> &amp; <a href="http://validator.w3.org/check?uri=referer">XHTML</a>. <a href="http://templates.arcsin.se">Website template</a> by <a href="http://arcsin.se">Arcsin</a>
% end

</div>
</body>

</html>